<#ftl strip_whitespace=true>
<#-- 页面公共ftl 引用处理 -->
<#macro top_menu index>
	<div class="navbar">
				<div class="navbar-inner">
					<div class="container">
						<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> 
							<span class="icon-bar"></span> 
							<span class="icon-bar"></span> 
							<span class="icon-bar"></span> 
						</a> 
						<a class="brand" href="javascript:void(0);">测试项目</a>
						<div class="nav-collapse">
							<ul class="nav">
								<li class="${(index == 1)?string('active','')}">
									<a href="/">Dashboard</a>
								</li>
							</ul>
							<form class="navbar-search pull-left" action="">
								<input type="text" class="search-query span2" placeholder="Search" />
							</form>
							<ul class="nav pull-right">
								<li>
									<a href="profile.vhtml">${adminToken.nickname}</a>
								</li>
								<li>
									<a href="javascript:C.fn.menu_logout();">Logout</a>
								</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
</#macro>
<#macro top_head>
	<meta name="renderer" content="webkit">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
	<meta name="description" content="樱桃养老" />
    <meta name="keywords" content="樱桃养老" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <!-- 为了适应于手机能打开 -->
    <meta name="viewport" id="WebViewport" content="width=1200px,initial-scale=1,target-densitydpi=device-dpi,minimum-scale=0.5,maximum-scale=1,user-scalable=1" />  
    <link rel="icon" href="${imgUrl}/images/front/images/logo.ico" type="image/x-icon">
    <link rel="shortcut icon" href="${imgUrl}/images/front/images/logo.ico" type="image/x-icon"/ >
    <!--公用样式-->
    <link  href="/css/front/css/base.css?v=${_v}" rel="stylesheet" type="text/css" />
    <script src="${jsPath}/js/front/js/jquery-1.8.3.js"></script>
    <script src="${jsPath}/js/front/js/function.js?v=${_v}" type="text/javascript"></script>
</#macro>

<!-- 奶牛公共css -->
<#macro cow_top_head>
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
	<meta http-equiv="content-type" content="text/html;charset=utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="renderer" content="webkit" />
	<!--樱桃养老-->
	<link rel="stylesheet" href="${cssPath}/css/cowfront/css/bootstrap.min.css" />
	<!--樱桃养老-->
	<link rel="stylesheet" href="${cssPath}/css/cowfront/css/base.css?v=${_v}" />
	<!-- jQuery 1.11.2 -->
	<script src="${jsPath}/js/cowfront/js/bootstrap.3.3.2/jquery.min.js"></script>
	<!-- Bootstrap 核心 JavaScript 文件 -->
	<script src="${jsPath}/js/cowfront/js/bootstrap.3.3.2/bootstrap.min.js"></script>
	<script src="${jsPath}/js/cowfront/js/bootstrapQ.js"></script>
	<link href="/js/cowfront/js/keyboard/jquery-ui.css" rel="stylesheet">
	<link href="/js/cowfront/js/keyboard/keyboard.css" rel="stylesheet">
	<script type="text/javascript" src="${jsPath}/js/cowfront/js/fastclick.js"></script>
	<script type="text/javascript" src="${jsPath}/js/cowfront/js/indexpage.js"></script>
    <!-- 滚动插件相关 -->
    <script type="text/javascript" src="${jsPath}/js/cowfront/js/jquery.SuperSlide.2.1.1.js"></script>
	<script src="/js/cowfront/index.js"></script>
	<script src="/js/cowfront/js/keyboard/jquery-ui.min.js"></script>
	<script src="/js/cowfront/js/keyboard/jquery.keyboard.js"></script>
	<script src="/js/cowfront/js/keyboard/jquery.mousewheel.js"></script>
	<!-- 个性化js -->
	<script src="${jsPath}/js/cowfront/js/function.js?v=${_v}" type="text/javascript"></script>
</#macro>

<!-- 奶牛公共页头 -->
<#macro cow_menu>
	<!-- 页头 -->
	<div class="header">
			<div class="back"><a href="javascript:resultPage();" class="public-back"> 返回</a></div>
		<div class="title">
			<h1>${pageName!}</h1>
		</div>
		<div class="go-home"><a href="/cowIndex/pension/resuIndex-${currentMediaId!}.vhtml" class="public-home">首页</a></div>
	</div>
</#macro>


<#macro top_login>

	<div class="navmenu">
	<div class="main" id = "login_and_out">
		<#if adminToken?exists >
			<div class="right"> 
				<a href="javascript:void(0);" class="m5right a-cl"> 您好！
				
				<#if adminToken.nickname!='null'>
					${adminToken.nickname}
				<#else>
					<#if adminToken.userName!='null'>
						${adminToken.userName}
					<#else>
						${adminToken.loginName}
					</#if>
				</#if>
				</a>
				<a href="javascript:C.fn.menu_logout('${currentMediaId!}');" class="m5right a-cl">退出</a>
			</div>
		<#else>
		
		<div class="right"> 
			<a href="javascript:C.fn.menu_login('${currentMediaId!}');" class="m10right a-cl">登录</a>
		</div>
		</#if>
		
	</div>
</div>
</#macro>

<#macro footer>
<div class="footer">
	<div class="main">
		<div class="con">
			<div class="a">Vinuxpost.com版权所有 2014-2017 ICP证：苏ICP备15018852号-1</div>
		</div>
	</div>
</div>
</#macro>
	

<#macro left_menu index>
	<div class="span3">
		<div class="well" style="padding: 8px 0;">
			<ul class="nav nav-list">
				<li class="nav-header">
					Akira
				</li>
				<li  class="${(index == 1)?string('active','')}">
					<a href="index.vhtml"><i class="icon-home"></i> Dashboard</a>
				</li>
				<li  class="${(index == 2)?string('active','')}">
					<a href="activity.vhtml"><i class="icon-list-alt"></i> Activity</a>
				</li>
				<li class="nav-header">
					Your Account
				</li>
				<li  class="${(index == 5)?string('active','')}">
					<a href="list.vhtml"><i class="icon-user"></i> 普通分页(增删改查)</a>
				</li>
				<li  class="${(index == 6)?string('active','')}">
					<a href="ajax.vhtml"><i class="icon-user"></i> Ajax分页</a>
				</li>
				
				<li  class="${(index == 3)?string('active','')}">
					<a href="profile.vhtml"><i class="icon-user"></i> Profile</a>
				</li>
				<li  class="${(index == 7)?string('active','')}">
					<a href="/image/index.vhtml"><i class="icon-user"></i> 上传实例</a>
				</li>
				<li class="divider">
				</li>
				<li  class="${(index == 4)?string('active','')}">
					<a href="help.vhtml"><i class="icon-info-sign"></i> Help</a>
				</li>
			</ul>
		</div>
	</div>
</#macro>

<#macro kitchen_menu>

<div class="navbox" id="test">
	<div class="nav">
		<ul class="clearfix">
			<li><a class="" href="/comminutyIndex/pension/index-${currentMediaId!}.vhtml">首页</a></li>
			<li><a href="/comminutyIndex/apply/toExamine-${currentMediaId!}.vhtml">核资格</a></li>
            <li><a href="/comminutyIndex/allowance/allowanceIndex-${currentMediaId!}.vhtml" class="" style="margin-right:0px;">补贴墙</a></li>
		</ul>
		<!-- 购物车 -->
        <div class="fr m200right" id="__buyCart">
            <ul class="mybox">
                <a href="javascript:void(0);"  ishow="0" class="more-list"><div class="title">购物车<i class="desc asc"></i><label>0</label></div></a>
                <div class="mybox-info">
                    <div class="box-con" id="__liList">
                        
                    </div>
                    <div class="total">
                        <span><label class="a">菜品数量：</label><label class="b">0</label></span>
                        <span><label class="a">商品总额：</label><label class="c">￥</label><label class="b">0.00</label></span>
                    </div>
                    <a href="javascript:void(0);" onclick="_placeanorder('${pushOrderurl!}','${userId!}','${mediaId!}');" class="box-btn fl ea4e8b ">立即下单</a>
                </div>
            </ul>
      </div>
	</div>
</div>
</#macro>

<#macro index_menu>

<div class="navbox" id="test">
	<div class="nav">
		<ul class="clearfix">
			<li><a class="" href="/comminutyIndex/pension/index-${currentMediaId!}.vhtml">首页</a></li>
			<li><a href="/comminutyIndex/apply/toExamine-${currentMediaId!}.vhtml">核资格</a></li>
            <li><a href="/comminutyIndex/allowance/allowanceIndex-${currentMediaId!}.vhtml" class="" style="margin-right:0px;">补贴墙</a></li>
		</ul>
	</div>
</div>
</#macro>

<#macro page_head>
<div class="header">
	<div class="main">
		<div class="left">
			<a href="/comminutyIndex/pension/index-${currentMediaId!}.vhtml" class="logo"><img src="${imgUrl}/images/front/images/logo.png" /></a>
		</div>
        <div class="right m30top"><a href="/comminutyIndex/mypension/myInfo-${currentMediaId!}.vhtml" class="r-btn" >我的樱桃养老</a></div>
	</div>
</div>
</#macro>
 
<#--弹窗初始化参数js-->
<#macro js_common_config>
	<@api target="configTag">
		<script>
	 		var V = {} || V ;
	 		<#--会员系统的相关地址-->
	 		V.member = new Object() ;
	 		<#--当前系统的相关地址-->
	 		V.domain = new Object();
	 		<#--当前域名-->
	 		V.domain.url = "${outTagName.domain?default('')}" || "";
	 		<#--会员域名-->
			V.member.domian= "${outTagName.memberDomain?default('')}" || "";
		 </script>
		 <script src="/js/common/jquery.min.js"></script>
		 <script src="/js/common/v.js"></script>
		<script src="${ssoPath}/sso/js/common/vinuxGlobalCall.js"></script>
		<script src="${ssoPath}/sso/js/common/u.member.login.js"></script>
	</@api>
</#macro>

 
<!-- 养老总后台导航-->
<#macro agedcare_navigation>
	<div class="navbox" id="test">
	<div class="nav">
		<ul class="clearfix">
			<li class="" ><a href="/pensionAdmin/VinuxAgedcare/agedcareIndex.vhtml"><span>首页</span></a></li>
		</ul>
		</div>
	</div>
	
</#macro>
<!-- 养老总后台左侧导航
<#macro agedcare_left_navigation>
<div class="left m10right">
	<div class="title">
		<span class="a"><img src="/images/back/images/individual.png" ></span>
		<span class="b">${loginName}</span>
		<span class="c">樱桃养老总账号</span>
	</div>
	<ul class="list">
		<li><a href="/pensionAdmin/VinuxAgedcare/agedcareIndex.vhtml" class="selected" >养老人员列表</a></li>
        <li><a href="/pensionAdmin/VinuxAgedcare/SetupIndex.vhtml" >参数设置</a></li>
	</ul>
</div>
</#macro>
-->
<#macro agedcare_footer>
	<div class="footer" >
		<div class="main">
			<div class="con">
				<div class="a">京ICP09010899号-5</div>
			</div>
		</div>
	</div>
</#macro>

<#macro agedcare_login>
	<div class="header">
	<div class="header-title bdfff">
			<div class="cont">
				<div class="right">
                	<label class="fl" >欢迎您：${indexName!} 已登录</label>
                	<input type="hidden" value="${mediaId!}"/>
			<!--		<a href="javascript:C.fn.menu_logout('${userId!}');">退出</a>  -->
				</div>
			</div>
	</div>
	<div class="main">
		<div class="logo"><a href="/comminutyBack/VinuxAgedcare/index.vhtml"><img src="/images/back/images/logo.png" /></a></div>
	</div>
</div>
</#macro>

 <!-- 养老总后台页头 -->
 <#macro agdcare_top>
	<div class="header">
		<div class="header-title bdfff">
			<div class="cont">
				<div class="right">
                	<label class="fl">欢迎您：${adminToken.loginName!},已登录</label>
				</div>
			</div>
	</div>
	<div class="main">
		<div class="logo"><a href="index.html"><img src="/images/back/images/logo.png" /></a></div>
	</div>
</div>
 </#macro>
 
 
<#macro cow_login>
<!-- 登录注册弹框 -->
<div class="modal fade" id="login" style="display: none;" aria-hidden="true">
<OBJECT classid=clsid:68DBF029-7F1B-4178-9C51-CA1FE5767D03 width=0 height=0 align="center" codebase="mtx_32.cab#version=1,0,0,1" id="mtx_32Ctrl" HSPACE=0 VSPACE=0></OBJECT>
<input type="hidden" name="DeviceHandle" id="DeviceHandle" maxlength="100" size="5" value="-1">
<input type="hidden" id="loginType" />
	<div class="modal-dialog" id="dialog">
		<div class="modal-content" id="content">
			<div class="modal-body"> <a href="" class="close" onclick="refreshLoginDiv()" data-dismiss="modal" aria-label="Close" id="closeButton"><span aria-hidden="true">&times;</span></a>
				<div id="dialog-box" class="dialog-box">
					<div class="dialog-content">
						<ul class="boxheader">
							<li><a href="javascript:void(0);" onClick="settab_login(this,'#tab3')" class=""><strong>登录</strong></a></li>
							<li class="selected"><a href="javascript:void(0);"  class=""><strong>注册</strong></a></li>
						</ul>
						<div class="boxcontent">
							<div id="tab3" class="login">
								<div class="loginleft">
									<span class="title">手机号登录</span>
									<span class="num"><input type="text" id="loginName" name="loginName" placeholder="| 输入账号"  class="txt login_password account_icon" /></span>
									<span class="pass"><input type="password" id="pwd" name="password" placeholder="| 密码" class="text-password login_password password" /></span>
									<span class="button button_top"><a href="javascript:void(0);" class="pre-btn ea4e8b pre-btn-w3 fl" id="loginButton">登 录</a></span>
								</div>
								<div class="loginright">
									<span class="title">身份证快速登录 </span>
									<span class="huo"><img src="${imgUrl}/images/cowfront/images/login/v.png" /></span>
									<span class="idimg"><img src="${imgUrl}/images/cowfront/images/login/x.png" /></span>
									<span class="button"><a href="javascript:void(0);" class="fl"  onClick="idCardLogin();"><img src="/images/cowfront/images/login/w.png" /></a></span>
								</div>
							</div>
							<div id="tab4" class="login register" style="display:none;">
								<div class="loginleft">
									<span class="title">手机号注册</span>
									<span class="num">
										<a href="javascript:void(0);" class="btn_code blue">获取验证码</a>
										<!-- <a href="javascript:void(0);" class="btn_code blue">30S后重新发送</a> -->
										<input type="text" placeholder="| 输入手机号" class="txt num-a" />
									</span>
									<span class="num">
										<input type="text" placeholder="| 输入验证码" class="txt num-a" />
									</span>
									<span class="pass"><input type="password" id="" placeholder="| 设置密码" class="password login_password" /></span>
									<span class="pass"><input type="password" id="" placeholder="| 输入验证码" class="password  login_password" /></span>
									
									<span class="button p20top"><a href="javascript:void(0);" class="pre-btn ea4e8b fl pre-btn-w3" onClick="OpenApply();" >注 册</a></span>
								</div>
								<div class="loginright">
									<span class="title">身份证快速注册 </span>
									<span class="huo"><img src="${imgUrl}/images/cowfront/images/login/v.png" /></span>
									<span class="idimg"><img src="${imgUrl}/images/cowfront/images/login/x2.png" /></span>
									<span class="button"><a href="javascript:void(0);" class="fl"><img src="/images/cowfront/images/login/z.png" /></a></span>
								</div>
							</div>
						</div>
					</div>
				  </div>
			</div>
		</div>
		<!-- /.modal-content --> 
	</div>
	<!-- /.modal-dialog --> 
</div>
 </#macro>
 
 
 <#macro login_message>
 <!-- 验证手机号码弹框 -->
<div id="test-num" style="display: none;" class="dialogBlack" >
    <div class="dialog-content">
        <div class="num-con" id="login_message"></div>
    </div>    
</div>
 
 </#macro>